<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Admin/js/ajaxfileupload.js"></script>
<style type="text/css">
  .w240{width: 240px;}
  .sml-240{padding-left: 240px;}
</style>


<div id="content" class="">
        <div class="row">
          <div class="col-md-12">
            <!-- Input Fields -->
            <div class="panel">
              <div class="panel-heading">
                <span class="panel-title">联系我们banner页设置</span>
              </div>
              <div class="admin-form theme-primary  center-block" style="padding-bottom: 175px; margin-top:30px; width:90%;">
              <div class="panel heading-border panel-primary">
                <form method="post" action="{:U('System/doTelUsBanner')}"  >
                  <div class="panel-body bg-light">
                    <div class="section-divider mt20 mb40"><span> 联系我们banner页设置 </span></div>

                    <div class="col-md-6">

                      <span class="fileupload-preview thumbnail m5 " >
                          <img src="{$img}" class="img-responsive" id="banner-img" title="product">
                      </span>

                      <input type="file" class="gui-file" style="width:0px" name="telUs" id="tel-us-banner" onchange=" ajaxuploadImg('tel-us-banner','banner-src','{:U('Ajax/uploadImg')}','banner-img');">
                      <input type="hidden" id="banner-src" name="img" value="{$img}">
                      <!-- <input type="hidden" name="bid" value="{$product['id']}"> -->

                      <span class="fileupload-preview  m5 pull-right"><button type="button" onclick="getinputclick('tel-us-banner');" class="btn active btn-primary btn-block">上传图片</button></span>

                    </div>


                </div>
                  <div class="panel-footer text-right">
                    <button type="submit" class="button btn-primary">提交</button>
                  </div>
                  <!-- end .form-footer section -->
                </form>

              </div>

            </div>
            </div>
          </div>
        </div>
</div>
<script type="text/javascript">
  function getinputclick(id){
      var dom = $("#"+id);
      dom.click();
  }

</script>
